package com.ny.shiyan.shiyan3;

public class Employee {
    private String employeeId;
    private String name;
    private String department;
    private int age;
    private String gender;
    private String contact;

    public Employee() {
    }

    public Employee(String employeeId, String name, String department,
                    int age, String gender, String contact) {
        this.employeeId = employeeId;
        this.name = name;
        this.department = department;
        this.age = age;
        this.gender = gender;
        this.contact = contact;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public void displayInfo() {
        System.out.println("职工编号: " + employeeId);
        System.out.println("姓名: " + name);
        System.out.println("所在部门: " + department);
        System.out.println("年龄: " + age);
        System.out.println("性别: " + gender);
        System.out.println("联系方式: " + contact);
    }
}
